using BLL.Gzh;
using DEL.Gzh;
using Microsoft.AspNetCore.Mvc;

namespace Web.Areas.Gzh.Controllers
{
    public class XSXXClueController : GzhController<XSXXClue>
    {
        protected override void SetCurrentEntityService()
        {
            CurrentEntityService = BLLFactory.SetXSXXClueService();
        }

        public JsonResult GetAllListByXSXXInfoIdToJson(int XsxxInfoId)
        {
            var data = CurrentEntityService.GetEntitysByLambdaAndSort(o => o.XSXXInfoId == XsxxInfoId, OrderLambda, IsASC);
            return Json(data);
        }
    }
}